/*
 * @Description: 配置文件
 * @Author: hai-27
 * @Date: 2020-02-07 16:23:00
 * @LastEditors: hai-27
 * @LastEditTime: 2020-03-05 01:41:38
 */
const webpack = require('webpack')
module.exports = {
  lintOnSave: false,
  publicPath: './',
  devServer: {
    open: false,
    overlay: {
      warning: false,
      errors: false
    },
    proxy: {
      '/api': {
        // target: 'http://localhost:9094', // 本地后端地址
        target: 'https://www.layoom.top', // 线上后端地址
        changeOrigin: true, //允许跨域
        pathRewrite: {
          '^/api': '/wheat'
        }
      }
    }
  },
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        ' window.Quill': 'quill/dist/quill.js',
        'Quill': 'quill/dist/quill.js'
      })
    ]
  }
}
